﻿using UnityEngine;
using System.Collections;

public class GameItem : MonoBehaviour {

    /// <summary>
    /// the gameobject's index in gamepool
    /// </summary>
    private int _index = -1;
    public int poolIndex
    {
        get
        {
            return _index;
        }
    }

    /// <summary>
    /// set index of the object
    /// </summary>
    /// <param name="index">index of the object</param>
    public void SetIndex(int index)
    {
        this._index = index;
    }

}
